package com.gsafety.wellsfort.dao.security;

import com.gsafety.wellsfort.domain.model.security.Admin;

import java.util.List;
import java.util.Map;

public interface AdminDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    Admin getByLoginId(Integer loginId);

    Integer countAdmin(Map<String,Object> params);

    List<Admin> pageQuery(Map<String,Object> params);

    List<Admin> selectBySchoolId(Integer schoolId);

}